package com.cc.service;

import com.cc.entity.Employees;
import com.cc.entity.Suppliers;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;


/**
 * @author hct
 * @description 针对表【employees】的数据库操作Service
 * @createDate 2024-10-21 08:45:38
 */
public interface EmployeesService {

    //新增
    int save(Employees employees);

    //修改
    int update(Employees employees);

    //删除
    int delete(@Param("employeeId") Integer employeeId);

    //获取用户信息通过登录名和密码
    Employees selectAllByLoginNameAndPassword(String loginName, String password);

    //分页查询
    PageInfo<Employees> getPage(String empName, String phoneNumber, Integer pageNum);

    Employees queryById(Integer id);

}
